package com.github.baichuan.application.dashboard.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

@Schema(description = "密码登录凭证")
@Getter
public class PasswordCredential {
    @Schema(description = "登陆名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "登陆名不能为空")
    private String loginName;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(hidden = true, description = "用户IP(由平台自动获取)")
    @Setter
    private String ip;
}